import { defineStore } from 'pinia';

export const useNavStore = defineStore('nav', {
    state: () => ({
        isCollapsed: false, // 控制菜单是否收缩
    }),
    actions: {
        toggleCollapsed() {
            this.isCollapsed = !this.isCollapsed;
        },
    },
});